<?php


namespace app\admin\model;
use think\Model;

class Evaluate extends Model
{
    public function getList()
{
       return $this->with('foods','users')->paginate('5');
}
    public function foods(){
        return $this->belongsTo('Foods','fid');

    }
    public function users(){
        return $this->belongsTo('Users','uid');

    }
    public function del($id){
        return $this->where('id',$id)->delete();
    }

}